﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for Cart_Item
/// </summary>
/// 
namespace Bestlife.ERP.Entities
{
public class Cart_Item
{
        private string id;

        #region CartItem Get:Set

        private string ID1;

        public string ID
        {
            get { return ID1; }
            set { ID1 = value; }
        }

        private string Code1;

        public string Code
        {
            get { return Code1; }
            set { Code1 = value; }
        }

        private string Name1;

        public string Name
        {
            get { return Name1; }
            set { Name1 = value; }
        }
        private double Price1;

        public double Price
        {
            get { return Price1; }
            set { Price1 = value; }
        }

        private double Re_price;

        public double Re_price1
        {
            get { return Re_price; }
            set { Re_price = value; }
        }

        private int quantity1;

        public int Quantity
        {
            get { return quantity1; }
            set { quantity1 = value; }
        }

        private float point_Value;

        public float PV
        {
            get { return point_Value; }
            set { point_Value = value; }
        }

        private float business_value;

        public float BV
        {
            get { return business_value; }
            set { business_value = value; }
        }

        private string url;

        public string Url
        {
            get { return url; }
            set { url = value; }
        }

        private double tot_Price;

        public double Total_Amount
        {
            get { return Price1 * quantity1; }
        }
        private double tot_R_Price;

        public double Total_RAmount
        {
            get { return Re_price1 * quantity1; }
        }

        private double tot_Point_Value;

        public double Total_PV
        {
            get { return point_Value * quantity1; }

        }

        private double tot_Business_Value;

        public double Total_BV
        {
            get {

                double val = double.Parse(business_value.ToString()) * quantity1;
                return val; 
            
            }

        }
        private double discount;

        public double Discount
        {
            get
            {
                double disc = Total_RAmount-Total_Amount;
                return disc;

            }

        }

        public Cart_Item(string id, string code)
        {
            // TODO: Complete member initialization
            this.id = id;
            this.Code = code;
        }


        public Cart_Item()
        {
            //'Default 
        }
        #endregion

}
}